<form action="" method="post">
	<table width="100%" border="0" cellpadding="2" cellspacing="0">
	  <tbody>
		<tr>
		  <td colspan="5" class="cattitle"><img src="<?php echo const_Static_Data_Url; ?>images/bullet_go.png" border="0" align="absmiddle" />Sửa menu</td>
		</tr>
		<tr>
			<td colspan="5" height="1"></td>
		</tr>
		
		<tr>
			<td class="padding">
			Menu cha
			</td>
			<td>
			<select name="menu_parentid">
			<option value="0">---</option>
			<?php
			foreach($parentMenu as $key => $val){
				if($val['menu_id'] == $menuInfo[0]['menu_parentid']){
					echo '<option value="'.$val['menu_id'].'" selected>'.$val['menu_name'].'</option>';
				}
				else{
					echo '<option value="'.$val['menu_id'].'">'.$val['menu_name'].'</option>';
				}
			}
			?>
			</select>
			</td>
		</tr>
		<tr>
			<td>
			Tên menu
			</td>
			<td>
			<input type="text" name="menu_name" class="txtinput" value="<?php echo $menuInfo[0]['menu_name'] ?>">
			</td>
		</tr>
		<tr>
			<td>
			Link menu
			</td>
			<td>
			<input type="text" name="menu_link" class="txtinput" value="<?php echo $menuInfo[0]['menu_link'] ?>">
			</td>
		</tr>
		<tr>
			<td>
			Hoạt động
			</td>
			<td>
			<input type="checkbox" name="menu_active" value="1" <?php $menuInfo[0]['menu_active'] == 1 ? print('checked') : print(''); ?>>
			</td>
		</tr>
		<tr>
			<td>
			<input type="hidden" name="gone" value="1">
			</td>
			<td>
			<input type="submit" class="button" value="Sửa menu">&nbsp;<input type="reset" class="button" value="Làm lại">
			</td>
		</tr>
		<tr>
			<td colspan="2" class="error">
			<?php echo $error; ?>
			</td>
		</tr>
	 </tbody>
	</table>
</form>